<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>运算符</title>
    <script type="text/javascript">
        var number1 = 9;
        var number2 = 4;
        document.write("number1: "+number1+"; number2: "+number2);
        //商
        document.write("<br/>number1/number2: "+(number1/number2));
        //余
        document.write("<br/>number1%number2: "+(number1%number2));
        number1++; //自加 number1=number1+1;
        document.write("<br/>number1: "+number1);
        number1--; //自减 number1=number1-1;
        document.write("<br/>number1: "+number1);

        document.write("<br/>判断(number1==9)的结果: "+(number1==9));
        document.write("<br/>判断(number1!=9)的结果: "+(number1!=9));
    </script>
</head>
<body>

</body>
</html>